#include<bits/stdc++.h>
using namespace std;
const int N=1e5+10;
int n,a[N],h=1,i;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(i=1;i<=n;i++)cin>>a[i];
    sort(a+1,a+1+n);
    for(i=2;i<=n;i++){
        if(a[h]<a[i]&&h!=i)h++;
    }
    cout<<n-h+1;
    return 0;
}
